﻿
namespace DBFile.Core.Interfaces
{
	public interface IDBFileProvider
	{
		int Copy(string sourceFilename, string destinationFilename, bool overwrite);
		int Delete(string filename);
		bool Exists(string filename);
        T Get<T>(string filename) where T : IDBFile, new();
		string[] GetFileNameList();
		int Insert(string filename, byte[] buffer, string contentType, long contentLength);
		int Insert(string filename, byte[] buffer, string contentType, long contentLength, bool overwrite);
		int Update(string filename, byte[] buffer, string contentType, long contentLength);
	}
}
